#include<map>
#include<string>
typedef struct{
    char name[50];
    int age;

}Student;
int main(){

    Student s1 = {"张三",20};
    //创建一个映射
    std::map<std::string,Student> student_map;
    //建立映射关系
    student_map["张三"] = s1;
    //根据名字查找到value值
    auto s2 = student_map["张三"];
    printf("%s %d\n",s2.name,s2.age);
    return 0;
}